package com.ybkj.daijia;

import com.ybkj.daijia.server.mapper.AdminMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

@Component
public class messageTimeClearTask {

    @Autowired
    private AdminMapper adminMapper;


    @Scheduled(cron = "0 0 4 * * ?")
    public void clear() {
        adminMapper.resetMessageTime();
    }
}
